.class public Les/h60;
.super Ljava/lang/Object;
.source "Partition.java"

# interfaces
.implements Les/a50;


# instance fields
.field private a:Les/a50;

.field private b:I

.field private c:I

.field private d:Les/c50;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method private constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a(Ljava/lang/String;Les/j60;Les/a50;)Les/h60;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    .line 1
    new-instance v0, Les/h60;

    invoke-direct {v0}, Les/h60;-><init>()V

    .line 2
    invoke-virtual {p1}, Les/j60;->a()I

    move-result v1

    iput v1, v0, Les/h60;->b:I

    .line 3
    iput-object p2, v0, Les/h60;->a:Les/a50;

    .line 4
    invoke-interface {p2}, Les/a50;->a()I

    move-result p2

    iput p2, v0, Les/h60;->c:I

    .line 5
    invoke-static {p0, p1, v0}, Les/d50;->a(Ljava/lang/String;Les/j60;Les/a50;)Les/c50;

    move-result-object p0

    iput-object p0, v0, Les/h60;->d:Les/c50;

    return-object v0
.end method


# virtual methods
.method public a()I
    .locals 1

    .line 15
    iget-object v0, p0, Les/h60;->a:Les/a50;

    invoke-interface {v0}, Les/a50;->a()I

    move-result v0

    return v0
.end method

.method public a(JLjava/nio/ByteBuffer;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 6
    iget v0, p0, Les/h60;->c:I

    int-to-long v1, v0

    div-long v1, p1, v1

    iget v3, p0, Les/h60;->b:I

    int-to-long v3, v3

    add-long/2addr v1, v3

    int-to-long v3, v0

    .line 7
    rem-long v3, p1, v3

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-eqz v7, :cond_0

    .line 8
    invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    .line 9
    iget-object v3, p0, Les/h60;->a:Les/a50;

    invoke-interface {v3, v1, v2, v0}, Les/a50;->a(JLjava/nio/ByteBuffer;)V

    .line 10
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 11
    iget v3, p0, Les/h60;->c:I

    int-to-long v3, v3

    rem-long/2addr p1, v3

    long-to-int p2, p1

    invoke-virtual {v0, p2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 12
    invoke-virtual {p3, v0}, Ljava/nio/ByteBuffer;->put(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;

    const-wide/16 p1, 0x1

    add-long/2addr v1, p1

    .line 13
    :cond_0
    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p1

    if-lez p1, :cond_1

    .line 14
    iget-object p1, p0, Les/h60;->a:Les/a50;

    invoke-interface {p1, v1, v2, p3}, Les/a50;->a(JLjava/nio/ByteBuffer;)V

    :cond_1
    return-void
.end method

.method public b()Les/c50;
    .locals 1

    .line 1
    iget-object v0, p0, Les/h60;->d:Les/c50;

    return-object v0
.end method

.method public b(JLjava/nio/ByteBuffer;)V
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 2
    iget v0, p0, Les/h60;->c:I

    int-to-long v1, v0

    div-long v1, p1, v1

    iget v3, p0, Les/h60;->b:I

    int-to-long v3, v3

    add-long/2addr v1, v3

    int-to-long v3, v0

    .line 3
    rem-long v3, p1, v3

    const-wide/16 v5, 0x0

    cmp-long v7, v3, v5

    if-eqz v7, :cond_0

    .line 4
    invoke-static {v0}, Ljava/nio/ByteBuffer;->allocate(I)Ljava/nio/ByteBuffer;

    move-result-object v0

    .line 5
    iget-object v3, p0, Les/h60;->a:Les/a50;

    invoke-interface {v3, v1, v2, v0}, Les/a50;->a(JLjava/nio/ByteBuffer;)V

    .line 6
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 7
    iget v3, p0, Les/h60;->c:I

    int-to-long v3, v3

    rem-long/2addr p1, v3

    long-to-int p2, p1

    invoke-virtual {v0, p2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 8
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p1

    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p2

    invoke-static {p1, p2}, Ljava/lang/Math;->min(II)I

    move-result p1

    .line 9
    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->array()[B

    move-result-object p2

    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->position()I

    move-result v3

    invoke-virtual {v0, p2, v3, p1}, Ljava/nio/ByteBuffer;->put([BII)Ljava/nio/ByteBuffer;

    .line 10
    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->position()I

    move-result p2

    add-int/2addr p2, p1

    invoke-virtual {p3, p2}, Ljava/nio/ByteBuffer;->position(I)Ljava/nio/Buffer;

    .line 11
    invoke-virtual {v0}, Ljava/nio/ByteBuffer;->clear()Ljava/nio/Buffer;

    .line 12
    iget-object p1, p0, Les/h60;->a:Les/a50;

    invoke-interface {p1, v1, v2, v0}, Les/a50;->b(JLjava/nio/ByteBuffer;)V

    const-wide/16 p1, 0x1

    add-long/2addr v1, p1

    .line 13
    :cond_0
    invoke-virtual {p3}, Ljava/nio/ByteBuffer;->remaining()I

    move-result p1

    if-lez p1, :cond_1

    .line 14
    iget-object p1, p0, Les/h60;->a:Les/a50;

    invoke-interface {p1, v1, v2, p3}, Les/a50;->b(JLjava/nio/ByteBuffer;)V

    :cond_1
    return-void
.end method

.method public c()J
    .locals 2

    .line 1
    iget-object v0, p0, Les/h60;->d:Les/c50;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 2
    :cond_0
    invoke-interface {v0}, Les/c50;->a()J

    move-result-wide v0

    return-wide v0
.end method

.method public d()J
    .locals 2

    .line 1
    iget-object v0, p0, Les/h60;->d:Les/c50;

    if-nez v0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 2
    :cond_0
    invoke-interface {v0}, Les/c50;->d()J

    move-result-wide v0

    return-wide v0
.end method

.method public e()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Les/h60;->d:Les/c50;

    invoke-interface {v0}, Les/c50;->c()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public init()V
    .locals 0

    return-void
.end method
